<!DOCTYPE html>
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
<style>
    .layermbox{display: none;}
</style>
<body style="font-size: 21.7589px;">
<div id="app">
    <div data-v-525f0946="" class="lotteryOutCon" s="[object Object]"><!---->
        <div data-v-57d17c89="" class="k3" data-v-525f0946="">
            <header data-v-57d17c89="" class="top">
                <div data-v-57d17c89="">
					<p data-v-57d17c89="">玩法</p> 
					<span data-v-57d17c89="" id="MethodStr" class="">
					<span class="name">和值</span><i data-v-57d17c89="" class="iconfont xiala"></i></span>
				</div>
                <div data-v-57d17c89="" id="lotteryChoice" class="fr">
                    <label data-v-57d17c89=""></label> 
					<i data-v-57d17c89="" class="iconfont xiala"></i>
                    <div data-v-57d17c89="" style="display: none;" class="fix">
                        <ins data-v-57d17c89=""></ins>
                        <a data-v-57d17c89="" href="{:U('lottery/jiangsu')}">江苏快3</a>
						<a data-v-57d17c89="" href="{:U('lottery/anhui')}">安徽快3</a>
						<a data-v-57d17c89="" href="{:U('lottery/guangxi')}">广西快3</a>
						<a data-v-57d17c89="" href="{:U('lottery/hubei')}">湖北快3</a>
						<a data-v-57d17c89="" href="{:U('lottery/beijing')}">北京快3</a>
						<a data-v-57d17c89="" href="{:U('lottery/hebei')}">河北快3</a>
						<a data-v-57d17c89="" class="on">甘肃快3</a>
						<a data-v-57d17c89="" href="{:U('lottery/shanghai')}">上海快3</a>
						<a data-v-57d17c89="" href="{:U('lottery/guizhou')}">贵州快3</a>
						<a data-v-57d17c89="" href="{:U('lottery/jilin')}">吉林快3</a>
					</div>
                </div>
                <a href="{:U('Index/index')}" class="iconfont back" data-v-57d17c89=""></a>
                <ul data-v-57d17c89="" class="betTopDetail" style="display: none;">
                    <li data-v-57d17c89="" class="checked"><p data-v-57d17c89="" class="p0">和值</p>

                        <p data-v-57d17c89="" class="p1">{$min}-{$max}倍</p>

                        <p data-v-57d17c89="" class="p2"><span data-v-57d17c89="" class="Dice Dice1"></span> <span
                                data-v-57d17c89="" class="Dice Dice2"></span> <span data-v-57d17c89=""
                                                                                    class="Dice Dice3"></span></p></li>
                    <li data-v-57d17c89="" class=""><p data-v-57d17c89="" class="p0">三同号通选</p>

                        <p data-v-57d17c89="" class="p1">赔率<span class="sj_plvs">{$k3['9']}</span>倍</p>

                        <p data-v-57d17c89="" class="p2"><span data-v-57d17c89="" class="Dice Dice1"></span> <span
                                data-v-57d17c89="" class="Dice Dice1"></span> <span data-v-57d17c89=""
                                                                                    class="Dice Dice1"></span></p></li>
                    <li data-v-57d17c89="" class=""><p data-v-57d17c89="" class="p0">三同号单选</p>

                        <p data-v-57d17c89="" class="p1">赔率<span class="sj_plvs">{$k3['10']}</span>倍</p>

                        <p data-v-57d17c89="" class="p2"><span data-v-57d17c89="" class="Dice Dice1"></span> <span
                                data-v-57d17c89="" class="Dice Dice1"></span> <span data-v-57d17c89=""
                                                                                    class="Dice Dice1"></span></p></li>
                    <li data-v-57d17c89="" class=""><p data-v-57d17c89="" class="p0">三不同号</p>

                        <p data-v-57d17c89="" class="p1">赔率<span class="sj_plvs">{$k3['11']}</span>倍</p>

                        <p data-v-57d17c89="" class="p2"><span data-v-57d17c89="" class="Dice Dice2"></span> <span
                                data-v-57d17c89="" class="Dice Dice3"></span> <span data-v-57d17c89=""
                                                                                    class="Dice Dice5"></span></p></li>
                    <li data-v-57d17c89="" class=""><p data-v-57d17c89="" class="p0">三连号通选</p>

                        <p data-v-57d17c89="" class="p1">赔率<span class="sj_plvs">{$k3['12']}</span>倍</p>

                        <p data-v-57d17c89="" class="p2"><span data-v-57d17c89="" class="Dice Dice1"></span> <span
                                data-v-57d17c89="" class="Dice Dice2"></span> <span data-v-57d17c89=""
                                                                                    class="Dice Dice3"></span></p></li>
                    <li data-v-57d17c89="" class=""><p data-v-57d17c89="" class="p0">二同号复选</p>

                        <p data-v-57d17c89="" class="p1">赔率<span class="sj_plvs">{$k3['13']}</span>倍</p>

                        <p data-v-57d17c89="" class="p2"><span data-v-57d17c89="" class="Dice Dice1"></span> <span
                                data-v-57d17c89="" class="Dice Dice1"></span> <span data-v-57d17c89=""
                                                                                    class="Dice Dice3"></span></p></li>
                    <li data-v-57d17c89="" class=""><p data-v-57d17c89="" class="p0">二同号单选</p>

                        <p data-v-57d17c89="" class="p1">赔率<span class="sj_plvs">{$k3['14']}</span>倍</p>

                        <p data-v-57d17c89="" class="p2"><span data-v-57d17c89="" class="Dice Dice1"></span> <span
                                data-v-57d17c89="" class="Dice Dice1"></span> <span data-v-57d17c89=""
                                                                                    class="Dice Dice3"></span></p></li>
                    <li data-v-57d17c89="" class=""><p data-v-57d17c89="" class="p0">二不同号</p>

                        <p data-v-57d17c89="" class="p1">赔率<span class="sj_plvs">{$k3['15']}</span>倍</p>

                        <p data-v-57d17c89="" class="p2"><span data-v-57d17c89="" class="Dice Dice1"></span> <span
                                data-v-57d17c89="" class="Dice Dice4"></span> <span data-v-57d17c89=""
                                                                                    class="Dice Dice4"></span></p></li>
                    <li data-v-57d17c89=""></li>
                </ul>
            </header>
            <section data-v-57d17c89="" class="State ">
                <div data-v-57d17c89="">
					<p data-v-57d17c89=""><span id="qishu2">{$dat.coming_issue}</span>期开奖号码</p>
					<if condition="$arr[0]['expect'] eq $dat['coming_issue'] ">
						<div data-v-57d17c89="" style="display: block;" class="DiceImg ffd">
							<if condition="$arr[0]['ocode'][0] eq 1 "> <div data-v-57d17c89="" class="Dice Dice1 "></div>
								<elseif condition="$arr[0]['ocode'][0] eq 2"/><div data-v-57d17c89="" class="Dice Dice2 "></div>
								<elseif condition="$arr[0]['ocode'][0] eq 3"/><div data-v-57d17c89="" class="Dice Dice3 "></div>
								<elseif condition="$arr[0]['ocode'][0] eq 4"/><div data-v-57d17c89="" class="Dice Dice4 "></div>
								<elseif condition="$arr[0]['ocode'][0] eq 5"/><div data-v-57d17c89="" class="Dice Dice5 "></div>
								<else /> <div data-v-57d17c89="" class="Dice Dice6 "></div>
							</if>
							<if condition="$arr[0]['ocode'][1] eq 1 "> <div data-v-57d17c89="" class="Dice Dice1 "></div>
								<elseif condition="$arr[0]['ocode'][1] eq 2"/><div data-v-57d17c89="" class="Dice Dice2 "></div>
								<elseif condition="$arr[0]['ocode'][1] eq 3"/><div data-v-57d17c89="" class="Dice Dice3 "></div>
								<elseif condition="$arr[0]['ocode'][1] eq 4"/><div data-v-57d17c89="" class="Dice Dice4 "></div>
								<elseif condition="$arr[0]['ocode'][1] eq 5"/><div data-v-57d17c89="" class="Dice Dice5 "></div>
								<else /> <div data-v-57d17c89="" class="Dice Dice6 "></div>
							</if>
							<if condition="$arr[0]['ocode'][2] eq 1 "> <div data-v-57d17c89="" class="Dice Dice1 "></div>
								<elseif condition="$arr[0]['ocode'][2] eq 2"/><div data-v-57d17c89="" class="Dice Dice2 "></div>
								<elseif condition="$arr[0]['ocode'][2] eq 3"/><div data-v-57d17c89="" class="Dice Dice3 "></div>
								<elseif condition="$arr[0]['ocode'][2] eq 4"/><div data-v-57d17c89="" class="Dice Dice4 "></div>
								<elseif condition="$arr[0]['ocode'][2] eq 5"/><div data-v-57d17c89="" class="Dice Dice5 "></div>
								<else /> <div data-v-57d17c89="" class="Dice Dice6 "></div>
							</if>
							<i data-v-57d17c89="" class="iconfont xiala"></i>
						</div>
						<div data-v-57d17c89="" style="display: none;" class="DiceImg fx_DiceImgs_d">
							<div data-v-57d17c89="" class="Dice Dice2 rDice1"></div>
							<div data-v-57d17c89="" class="Dice Dice3 rDice2"></div>
							<div data-v-57d17c89="" class="Dice Dice4 rDice3"></div>
							<i data-v-57d17c89="" class="iconfont xiala"></i>
						</div>
					<else /> 
						<div data-v-57d17c89="" style="display: none;" class="DiceImg ffd">
							<if condition="$arr[0]['ocode'][0] eq 1 "> <div data-v-57d17c89="" class="Dice Dice1 "></div>
								<elseif condition="$arr[0]['ocode'][0] eq 2"/><div data-v-57d17c89="" class="Dice Dice2 "></div>
								<elseif condition="$arr[0]['ocode'][0] eq 3"/><div data-v-57d17c89="" class="Dice Dice3 "></div>
								<elseif condition="$arr[0]['ocode'][0] eq 4"/><div data-v-57d17c89="" class="Dice Dice4 "></div>
								<elseif condition="$arr[0]['ocode'][0] eq 5"/><div data-v-57d17c89="" class="Dice Dice5 "></div>
								<else /> <div data-v-57d17c89="" class="Dice Dice6 "></div>
							</if>
							<if condition="$arr[0]['ocode'][1] eq 1 "> <div data-v-57d17c89="" class="Dice Dice1 "></div>
								<elseif condition="$arr[0]['ocode'][1] eq 2"/><div data-v-57d17c89="" class="Dice Dice2 "></div>
								<elseif condition="$arr[0]['ocode'][1] eq 3"/><div data-v-57d17c89="" class="Dice Dice3 "></div>
								<elseif condition="$arr[0]['ocode'][1] eq 4"/><div data-v-57d17c89="" class="Dice Dice4 "></div>
								<elseif condition="$arr[0]['ocode'][1] eq 5"/><div data-v-57d17c89="" class="Dice Dice5 "></div>
								<else /> <div data-v-57d17c89="" class="Dice Dice6 "></div>
							</if>
							<if condition="$arr[0]['ocode'][2] eq 1 "> <div data-v-57d17c89="" class="Dice Dice1 "></div>
								<elseif condition="$arr[0]['ocode'][2] eq 2"/><div data-v-57d17c89="" class="Dice Dice2 "></div>
								<elseif condition="$arr[0]['ocode'][2] eq 3"/><div data-v-57d17c89="" class="Dice Dice3 "></div>
								<elseif condition="$arr[0]['ocode'][2] eq 4"/><div data-v-57d17c89="" class="Dice Dice4 "></div>
								<elseif condition="$arr[0]['ocode'][2] eq 5"/><div data-v-57d17c89="" class="Dice Dice5 "></div>
								<else /> <div data-v-57d17c89="" class="Dice Dice6 "></div>
							</if>
							<i data-v-57d17c89="" class="iconfont xiala"></i>
						</div>
						<div data-v-57d17c89="" style="display: block;" class="DiceImg fx_DiceImgs_d">
							<div data-v-57d17c89="" class="Dice Dice2 rDice1"></div>
							<div data-v-57d17c89="" class="Dice Dice3 rDice2"></div>
							<div data-v-57d17c89="" class="Dice Dice4 rDice3"></div>
							<i data-v-57d17c89="" class="iconfont xiala"></i>
						</div>
					</if>	
                </div>
                <div data-v-57d17c89="">
					<p data-v-57d17c89=""><span id="qishu">{$dat.current_issue}</span>期投注截止</p>
					<if condition="$state eq 1 "><div data-v-57d17c89=""><span id="RemainH">预售中</span></div>
					 <else /> <div data-v-57d17c89=""><span id="RemainH">00:00:00</span></div>
					 </if>
                </div>
                <table data-v-57d17c89=""  class="openPast">
                    <tr data-v-57d17c89="">
                        <td data-v-57d17c89="">期号</td>
                        <td data-v-57d17c89="">开奖号码</td>
                        <td data-v-57d17c89="">和值</td>
                        <td data-v-57d17c89="">大小</td>
                        <td data-v-57d17c89="">单双</td>
                    </tr>
					<foreach name="arr" item="vv">
                    <tr data-v-57d17c89="">
                        <td data-v-57d17c89="">&nbsp;&nbsp;&nbsp;{$vv.expect}<i data-v-57d17c89="">—</i></td>
                        <td data-v-57d17c89="" style="position:relative;">
                            <div data-v-57d17c89="" class="openPastDiceImg">
								<if condition="$vv['ocode'][0] eq 1 "> <div data-v-57d17c89="" class="Dice Dice1 "></div>
									<elseif condition="$vv['ocode'][0] eq 2"/><div data-v-57d17c89="" class="Dice Dice2 "></div>
									<elseif condition="$vv['ocode'][0] eq 3"/><div data-v-57d17c89="" class="Dice Dice3 "></div>
									<elseif condition="$vv['ocode'][0] eq 4"/><div data-v-57d17c89="" class="Dice Dice4 "></div>
									<elseif condition="$vv['ocode'][0] eq 5"/><div data-v-57d17c89="" class="Dice Dice5 "></div>
									<else /> <div data-v-57d17c89="" class="Dice Dice6 "></div>
								</if>
								<if condition="$vv['ocode'][1] eq 1 "> <div data-v-57d17c89="" class="Dice Dice1 "></div>
									<elseif condition="$vv['ocode'][1] eq 2"/><div data-v-57d17c89="" class="Dice Dice2 "></div>
									<elseif condition="$vv['ocode'][1] eq 3"/><div data-v-57d17c89="" class="Dice Dice3 "></div>
									<elseif condition="$vv['ocode'][1] eq 4"/><div data-v-57d17c89="" class="Dice Dice4 "></div>
									<elseif condition="$vv['ocode'][1] eq 5"/><div data-v-57d17c89="" class="Dice Dice5 "></div>
									<else /> <div data-v-57d17c89="" class="Dice Dice6 "></div>
								</if>
								<if condition="$vv['ocode'][2] eq 1 "> <div data-v-57d17c89="" class="Dice Dice1 "></div>
									<elseif condition="$vv['ocode'][2] eq 2"/><div data-v-57d17c89="" class="Dice Dice2 "></div>
									<elseif condition="$vv['ocode'][2] eq 3"/><div data-v-57d17c89="" class="Dice Dice3 "></div>
									<elseif condition="$vv['ocode'][2] eq 4"/><div data-v-57d17c89="" class="Dice Dice4 "></div>
									<elseif condition="$vv['ocode'][2] eq 5"/><div data-v-57d17c89="" class="Dice Dice5 "></div>
									<else /> <div data-v-57d17c89="" class="Dice Dice6 "></div>
								</if>
                            </div>
                        </td>
                        <td data-v-57d17c89="">{$vv.total}</td>
                        <td data-v-57d17c89="">
							<if condition="$vv.size eq 1 ">
								<span data-v-57d17c89="" class="light">小</span>
							 <else /> 
								<span data-v-57d17c89="" class="light">大</span>
							 </if>
						</td>
                        <td data-v-57d17c89="">
							<if condition="$vv.attr eq 1 ">
								<span data-v-57d17c89="" class="light">单</span>
							 <else /> 
								<span data-v-57d17c89="" class="light">双</span>
							 </if>
						</td>
                    </tr>
					</foreach>
                </table>
                <table data-v-57d17c89="" style="display: none;" class="myBet">
                    <tr data-v-57d17c89="">
                        <td data-v-57d17c89="">期号</td>
                        <td data-v-57d17c89="">投注金额</td>
                        <td data-v-57d17c89="">奖金</td>
                    </tr>
                    <tr data-v-57d17c89="">
                        <td data-v-57d17c89="">xxxx</td>
                        <td data-v-57d17c89="">

                        </td>
                        <td data-v-57d17c89=""></td>
                    </tr>
                    <tr data-v-57d17c89="">
                        <td data-v-57d17c89="">xxxx</td>
                        <td data-v-57d17c89="">

                        </td>
                        <td data-v-57d17c89=""></td>
                    </tr>
                    <tr data-v-57d17c89="">
                        <td data-v-57d17c89="">xxxx</td>
                        <td data-v-57d17c89="">

                        </td>
                        <td data-v-57d17c89=""></td>
                    </tr>
                </table>
            </section>
            <div data-v-57d17c89="" class="main">
                <div data-v-57d17c89="" class="MethodWrap">
                    <div data-v-57d17c89="" class="Method Method0 on"><p data-v-57d17c89="" class="MethodMsg">
                        猜3个开奖号相加的和，3-10为小，11-18为大。</p>
                        <ul data-v-57d17c89="">
                            <li data-v-57d17c89="" class=" one">大
                                <p data-v-57d17c89="" data-plv="{$k3['0']}">赔率{$k3['0']}</p></li>
                            <li data-v-57d17c89="" class=" one">小
                                <p data-v-57d17c89="" data-plv="{$k3['0']}">赔率{$k3['0']}</p></li>
                            <li data-v-57d17c89="" class=" two">单
                                <p data-v-57d17c89="" data-plv="{$k3['0']}">赔率{$k3['0']}</p></li>
                            <li data-v-57d17c89="" class=" two">双
                                <p data-v-57d17c89="" data-plv="{$k3['0']}">赔率{$k3['0']}</p></li>
                            <li data-v-57d17c89="" class="">3
                                <p data-v-57d17c89="" data-plv="{$k3['1']}">赔{$k3['1']}</p></li>
                            <li data-v-57d17c89="" class="">4
                                <p data-v-57d17c89="" data-plv="{$k3['2']}">赔{$k3['2']}</p></li>
                            <li data-v-57d17c89="" class="">5
                                <p data-v-57d17c89="" data-plv="{$k3['3']}">赔{$k3['3']}</p></li>
                            <li data-v-57d17c89="" class="">6
                                <p data-v-57d17c89="" data-plv="{$k3['4']}">赔{$k3['4']}</p></li>
                            <li data-v-57d17c89="" class="">7
                                <p data-v-57d17c89="" data-plv="{$k3['5']}">赔{$k3['5']}</p></li>
                            <li data-v-57d17c89="" class="">8
                                <p data-v-57d17c89="" data-plv="{$k3['6']}">赔{$k3['6']}</p></li>
                            <li data-v-57d17c89="" class="">9
                                <p data-v-57d17c89="" data-plv="{$k3['7']}">赔{$k3['7']}</p></li>
                            <li data-v-57d17c89="" class="">10
                                <p data-v-57d17c89="" data-plv="{$k3['8']}">赔{$k3['8']}</p></li>
                            <li data-v-57d17c89="" class="">11
                                <p data-v-57d17c89="" data-plv="{$k3['8']}">赔{$k3['8']}</p></li>
                            <li data-v-57d17c89="" class="">12
                                <p data-v-57d17c89="" data-plv="{$k3['7']}">赔{$k3['7']}</p></li>
                            <li data-v-57d17c89="" class="">13
                                <p data-v-57d17c89="" data-plv="{$k3['6']}">赔{$k3['6']}</p></li>
                            <li data-v-57d17c89="" class="">14
                                <p data-v-57d17c89="" data-plv="{$k3['5']}">赔{$k3['5']}</p></li>
                            <li data-v-57d17c89="" class="">15
                                <p data-v-57d17c89="" data-plv="{$k3['4']}">赔{$k3['4']}</p></li>
                            <li data-v-57d17c89="" class="">16
                                <p data-v-57d17c89="" data-plv="{$k3['3']}">赔{$k3['3']}</p></li>
                            <li data-v-57d17c89="" class="">17
                                <p data-v-57d17c89="" data-plv="{$k3['2']}">赔{$k3['2']}</p></li>
                            <li data-v-57d17c89="" class="">18
                                <p data-v-57d17c89="" data-plv="{$k3['1']}">赔{$k3['1']}</p></li>
                        </ul>
                    </div>
                    <div data-v-57d17c89="" class="Method Method1"><p data-v-57d17c89="" class="MethodMsg">对所有相同的三个号码(111、222、333、444、555、666)进行投注，任意号码开出，即为中奖。赔率{$k3['9']}倍。</p> <ul data-v-57d17c89=""><li data-v-57d17c89="" class="">三同号通选</li></ul>
                    </div>
                    <div data-v-57d17c89="" class="Method Method2"><p data-v-57d17c89="" class="MethodMsg">对相同的三个号码(111、222、333、444、555、666)中的任意一个或多个进行投注，所选号码开出，即为中奖。赔率{$k3['10']}倍。</p> <ul data-v-57d17c89=""><li data-v-57d17c89="" class="">111
                        <!----></li><li data-v-57d17c89="" class="">222
                        <!----></li><li data-v-57d17c89="" class="">333
                        <!----></li><li data-v-57d17c89="" class="">444
                        <!----></li><li data-v-57d17c89="" class="">555
                        <!----></li><li data-v-57d17c89="" class="">666</li></ul>
                    </div>
                    <div data-v-57d17c89="" class="Method Method3"><p data-v-57d17c89="" class="MethodMsg">从1-6中任选3个或多个号码,所选号码与开奖号码的3个号码相同,即为中奖。赔率{$k3['11']}倍。</p> <ul data-v-57d17c89=""><li data-v-57d17c89="" class="">1
                        <!----></li><li data-v-57d17c89="" class="">2
                        <!----></li><li data-v-57d17c89="" class="">3
                        <!----></li><li data-v-57d17c89="" class="">4
                        <!----></li><li data-v-57d17c89="" class="">5
                        <!----></li><li data-v-57d17c89="" class="">6
                        <!----></li></ul></div>
                    <div data-v-57d17c89="" class="Method Method4"><p data-v-57d17c89="" class="MethodMsg">对所有的3个相连号码(123、234、345、456)进行投注，任意号码开出，即为中奖。赔率{$k3['12']}倍。</p> <ul data-v-57d17c89=""><li data-v-57d17c89="" class="">三连号通选
                        <!----></li></ul></div>
                    <div data-v-57d17c89="" class="Method Method5"><p data-v-57d17c89="" class="MethodMsg">从11-66中任选1个或多个号码，选号与奖号(包含11-66，不限顺序)相同，即为中奖（不含豹子）。赔率{$k3['13']}倍。</p> <ul data-v-57d17c89=""><li data-v-57d17c89="" class="">11
                        <!----></li><li data-v-57d17c89="" class="">22
                        <!----></li><li data-v-57d17c89="" class="">33
                        <!----></li><li data-v-57d17c89="" class="">44
                        <!----></li><li data-v-57d17c89="" class="">55
                        <!----></li><li data-v-57d17c89="" class="">66
                        <!----></li></ul></div>
                    <div data-v-57d17c89="" class="Method Method6"><p data-v-57d17c89="" class="MethodMsg">选择1对相同号码和1个不同号码投注，选号与奖号相同，即为中奖。赔率{$k3['14']}倍。</p> <ul data-v-57d17c89="">
                            <div>
                                <li data-v-57d17c89="" class="">11
                                    <!----></li><li data-v-57d17c89="" class="">22
                                <!----></li><li data-v-57d17c89="" class="">33
                                <!----></li><li data-v-57d17c89="" class="">44
                                <!----></li><li data-v-57d17c89="" class="">55
                                <!----></li><li data-v-57d17c89="" class="">66
                            </div>
                            <div>
                        <!----></li><li data-v-57d17c89="" class="">1
                        <!----></li><li data-v-57d17c89="" class="">2
                        <!----></li><li data-v-57d17c89="" class="">3
                        <!----></li><li data-v-57d17c89="" class="">4
                        <!----></li><li data-v-57d17c89="" class="">5
                        <!----></li><li data-v-57d17c89="" class="">6
                        <!----></li></div></ul></div>
                    <div data-v-57d17c89="" class="Method Method7"><p data-v-57d17c89="" class="MethodMsg">从1-6中任选2个或多个号码，所选号码与开奖号码任意2个号码相同，即为中奖。赔率{$k3['15']}倍。</p> <ul data-v-57d17c89=""><li data-v-57d17c89="" class="checked">1
                        <!----></li><li data-v-57d17c89="" class="checked">2
                        <!----></li><li data-v-57d17c89="" class="">3
                        <!----></li><li data-v-57d17c89="" class="">4
                        <!----></li><li data-v-57d17c89="" class="">5
                        <!----></li><li data-v-57d17c89="" class="">6
                        <!----></li></ul></div>
                </div>
            </div>
            <footer data-v-57d17c89="" class="bottom">
                <table data-v-57d17c89="" class="sj_show_choose" style="display: none;">
                    <tbody data-v-57d17c89="">
                    <tr data-v-57d17c89="">
                        <td data-v-57d17c89="">当前选号</td>
                        <td data-v-57d17c89=""><span data-v-57d17c89="" id="choice"></span></td>
                        <input type="hidden" class="sj_choice_input"/>
                    </tr>
                    <tr data-v-57d17c89="">
                        <td data-v-57d17c89="">每注金额</td>
                        <td data-v-57d17c89=""><input data-v-57d17c89="" class="sj_each_money" type="tel" maxlength="7">
                            <div data-v-57d17c89="" class="sj_qing">请输入要投注的金额</div>
                            <div data-v-57d17c89="" class="sj_show_zgkz" style="display: none;">最高可中<span class="sj_zgkz_money" data-v-57d17c89="">0.00</span>元
                            </div>
                            <input type="hidden" class="sj_zgkz_input"/>
                        </td>
                    </tr>
                    </tbody>
                </table>
                <div data-v-57d17c89="" class="ft0">
                    <div data-v-57d17c89="" class="sj_clear_btn fl">清空</div>
                    <p data-v-57d17c89="" class="sj_zong_cal fl" style="display: none"><span class="sj_zong_zhu">共<i></i>注</span><span class="sj_zong_money" style="display: none">, <i></i>元</span></p>
                    <div data-v-57d17c89="" class="sj_tou_btn fr">马上投注</div>
                    <!--总注数-->
                    <input type="hidden" class="sj_zong_zhu_input" />
                    <!--总钱数-->
                    <input type="hidden" class="sj_zong_money_input"/>
                    <!--//彩种-->
                    <input type="hidden" class="sj_caizhong_input"/>
                </div>
            </footer>
        </div>
    </div>
</div>
<!--弹出框-->
<!--投注信息-->
<div id="layermbox2" class="layermbox layermbox0 layermshow" index="2"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild  layermanim" style="width:18em;font-size:.7em">
<h3 style="">投注确认</h3>
	<button class="layermend"></button>
	<div class="layermcont">
		<span class="sj_cp_name"></span>: <span id='spans'>{$dat.current_issue}</span>期<br>
		投注金额: <span style="color:red"><span class="sj_cp_qian"></span>元</span><br>
		投注内容:<span class="sj_cp_cont"></span>
	</div>
	<div class="layermbtn">
		<span type="0">取消</span>
		<span type="1" onclick="tj()">确定</span>
	</div>
</div></div></div></div>
<!--投注信息 end-->
<!--填写金额-->
<div id="layermbox3" class="layermbox layermbox0 layermshow" index="3"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3><button class="layermend"></button><div class="layermcont">请填写您要投注的金额</div><div class="layermbtn"><span type="1">确定</span></div></div></div></div></div>
<!--填写金额 end-->
<!--至少选一注-->
<div id="layermbox4" class="layermbox layermbox0 layermshow" index="4"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3><button class="layermend"></button><div class="layermcont">请至少选择一注号码投注</div><div class="layermbtn"><span type="1">确定</span></div></div></div></div></div>
<!--至少选一注 end-->
<div id="layermbox199" class="layermbox layermbox0 layermshow tanc" index="0"  style="display: none;">
	<div class="laymshade"></div>
		<div class="layermmain">
			<div class="section">
				<div class="layermchild layerConfirm layerCenter layermanim">
					<h3 style="">温馨提示</h3>
					<button class="layermend"></button>
					<div class="layermcont"><span id="span11"><?php echo substr(trim($dat['current_issue']),4);?></span>期已截止
						<br>当前期号<span style="color:red" id="span22"><?php echo substr(trim($dat['current_issue']+1),4);?></span>
						<br>投注时请注意期号
					</div>
				<div class="layermbtn">
					<span type="1">确定</span>
</div></div></div></div></div>

<div id="layermbox1999" class="layermbox layermbox0 layermshow" index="11"><div class="laymshade"></div><div class="layermmain"><div class="section"><div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3><button class="layermend"></button><div class="layermcont">·投注成功·</div><div class="layermbtn"><span type="1">确定</span></div></div></div></div></div>
<!--弹出框 end-->
<!--余额不足弹出框 begion-->
<div id="chongzhi" class="layermbox layermbox0 layermshow" index="1" style="display: none">
	<div class="laymshade"></div>
	<div class="layermmain">
		<div class="section">
			<div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
				<button class="layermend"></button>
				<div class="layermcont">·您的余额不足,请先充值!·</div><br/>
				<div class="chongzhi" style="height: 45px">
					<span type="1">确定</span>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
	$(".chongzhi").click(function(){
		$("#chongzhi").hide();
		window.location.href = "/Users/rechargeWay";
	});
</script>
<!--余额不足弹出框 end-->
<script src="/style/js/jquery-1.9.1.min.js"></script>
<script src="/style/js/fx.js"></script>
<script>
	var na = "<?php echo $dat['coming_issue'];?>";
	var na2 = "<?php echo $dat['current_issue'];?>";
var sta = "<?php echo $state;?>";
var jj = "<?php echo substr($arr[0]['expect'],0,8);?>";
	var end = "<?php echo $end;?>";
	var str1 = "<?php echo $str;?>";
	var ming = "<?php echo $ming;?>";
if(sta=='1'){
	var jqi = parseInt(jj)+1+'001';
	$("#qishu").html(jqi);
}
K3JS();
function K3JS(){

	setInterval(function(){
		$(".fx_DiceImgs_d .Dice").each(function(){
			if($(this).hasClass("rDice1")){
		
				$(this).removeClass("rDice1");
				$(this).addClass("rDice2");
				
			}else if($(this).hasClass("rDice2")){
				$(this).removeClass("rDice2");
				$(this).addClass("rDice3");
				
			}else if($(this).hasClass("rDice3")){
				$(this).removeClass("rDice3");
				$(this).addClass("rDice1");
				
			}
		})
		
	},100)
	k3Others();
	//页面中的其它js效果
	function k3Others(){
		$(".Method").hide();
		$(".Method.on").show();
		var txt = $("#lotteryChoice .fix a.on").text().replace(/\s/g,"").substring(0,2);
		$("#lotteryChoice label").text(txt);
		$(".sj_caizhong_input").val(txt+"快3");
		$("#MethodStr").click(function(event){
			$(this).toggleClass("on");
			if($(this).hasClass("on")){
				$(".betTopDetail").show();
			}else{
				$(".betTopDetail").hide();
			}

			$("#lotteryChoice,.State").removeClass("on");
			$("#lotteryChoice").find(".fix").hide();
			$(".openPast").hide();
			event.stopPropagation();
		});
		$("body").click(function(){
			$("#MethodStr,#lotteryChoice,.State").removeClass("on");
			$(".betTopDetail").hide();
			$("#lotteryChoice").find(".fix").hide();
			$(".openPast").hide();
		});

		$(".betTopDetail li").click(function(event){
			var i = $(this).index();
			$(this).addClass("checked").siblings().removeClass("checked");
			$("#MethodStr").removeClass("on");
			$(".betTopDetail").hide();
			var txt = $(this).find(".p0").text().replace(/\s/g,"");
			$("#MethodStr .name").text(txt);
			event.stopPropagation();
		});
		$("#lotteryChoice").click(function(event){
			$(this).toggleClass("on");
			if($(this).hasClass("on")){
				$(this).find(".fix").show();
			}else{
				$(this).find(".fix").hide();
			}

			$("#MethodStr,.State").removeClass("on");
			$(".betTopDetail").hide();
			$(".openPast").hide();
			event.stopPropagation();
		});
		$("#lotteryChoice .fix a").click(function(event){
			var txt = $(this).text().replace(/\s/g,"").substring(0,2);
			$(this).parents(".fix").siblings("label").text(txt);
			$(".sj_caizhong_input").val(txt+"快3");

			$("#lotteryChoice").removeClass("on");
			$("#lotteryChoice").find(".fix").hide();
			to0();
			event.stopPropagation();
		});

		$(".State").click(function(event){
			$(this).toggleClass("on");
			if($(this).hasClass("on")){
				$(".openPast").show();
			}else{
				$(".openPast").hide();
			}
			$("#MethodStr,#lotteryChoice").removeClass("on");
			$(".betTopDetail").hide();
			$("#lotteryChoice").find(".fix").hide();
			event.stopPropagation();
		});
		$(".openPast").click(function(event){
			$(".State").removeClass("on");
			$(".openPast").hide();
			event.stopPropagation();
		})
	}


	step1();
	//    点击彩种，显示对应的提示/注数
	function step1(){
		$(".betTopDetail li").click(function(event){
			var i = $(this).index();
			$(".MethodWrap").find(".Method"+i).addClass("on").siblings(".Method").removeClass("on");
			$(".MethodWrap").find(".Method"+i).show().siblings(".Method").hide();
			to0();
			event.stopPropagation();
		});
	}

	step2();
	//点击数字，生成注数
	function step2(){
		//和值
		$(".Method0 ul li").click(function(){
			$(this).toggleClass("checked");
			var str = "";
			$(".Method0 ul li").each(function(){
				if($(this).hasClass("checked")){
					var txt = $(this).text();
					var pos = txt.indexOf("赔");
					txt = txt.substring(0,pos).replace(/\s/g,"");
					str += txt+" ";
				}
			});
		   if(str){
			   $(".sj_show_choose").show();
			   $("#choice").text(str);
			   $(".sj_choice_input").val(str);
		   }
			totalCal();

		});
		//三同号单选等
		$(".Method1 ul li,.Method2 ul li,.Method3 ul li,.Method4 ul li,.Method5 ul li,.Method7 ul li").click(function(){
			$(this).toggleClass("checked");
			var str = "";
			$(".Method.on ul li").each(function(){
				if($(this).hasClass("checked")){
					str += $(this).text().replace(/\s/g,"")+" ";
					$(".sj_show_choose").show();
					$("#choice").text(str);
					$(".sj_choice_input").val(str);
				}
			});


			totalCal();

		});
		//二同号单选等
		$(".Method6 ul div li").click(function(){
			$(this).toggleClass("checked");
			var i = $(this).index();
			var str = "";
			if($(this).hasClass("checked")){
				$(this).parent().siblings("div").find("li").eq(i).removeClass("checked");

				$(".Method.on ul li").each(function(){
					if($(this).hasClass("checked")){
						str += $(this).text().replace(/\s/g,"")+" ";
						$(".sj_show_choose").show();
						$("#choice").text(str);
						$(".sj_choice_input").val(str);
					}

				});

			}

			totalCal();

		});

	}

	//每注金额输入框js
	$(".sj_each_money").keyup(function(){
		var val = $(this).val();
		if(val){
			$(".sj_zong_money").show();
			$(".sj_qing").hide();
			$(".sj_show_zgkz").show();
			$(".sj_zgkz_money").text(val);


			totalCal();
		}else{
			$(".sj_qing").show();
			$(".sj_show_zgkz").hide();
		}

		totalCal();
	});
	//总的计算
	function totalCal(){
		var zhul = 0;
		var zgao0 = 0;
		var plv0 = 0;
		var bsure = 0;//用来判断是否显示底部选择的数据
		var zindex = $(".Method.on").index();


		if(zindex==0||zindex==1||zindex==2||zindex==4||zindex==5){
			$(".Method.on ul li").each(function(){
				if($(this).hasClass("checked")){
					zhul++;
				}
			});
			bsure = zhul;
		}
		if(zindex==3||zindex==7){
			var len0 = $(".Method.on li.checked").length;
			if(zindex==3){
				zhul = C(len0,3);
			}else{
				zhul = C(len0,2);
			}

			bsure = len0;
		}
		if(zindex==6){
			var len1 = $(".Method.on ul div:nth-of-type(1) li.checked").length;
			var len2 = $(".Method.on ul div:nth-of-type(2) li.checked").length;
			zhul = len1*len2;

			if(len1 !== 0 || len2 !== 0 ){
				bsure = 1;
			}

		}


		if(bsure !== 0){
			$(".sj_zong_cal").show();
			$(".sj_zong_zhu i").text(zhul);
			$(".sj_zong_zhu_input").val(zhul);
		}else{
			$(".sj_zong_cal").hide();
			$(".sj_zong_zhu i").text(zhul);
			$(".sj_zong_zhu_input").val(zhul);
			$(".sj_show_choose").hide();
		}


		if(zindex !== 0){
			plv0 = parseFloat($(".betTopDetail li.checked").find(".sj_plvs").text())*100;
		}

		if(zindex == 0){
			//和值
		   // 获取赔率
			var p0 = 0;
			var p1 = 0;
			$(".Method0 ul li.one").each(function(){
				if($(this).hasClass("checked")){
					p0 = 1;
				}
			});
			$(".Method0 ul li.two").each(function(){
				if($(this).hasClass("checked")){
					p1 = 1;
				}
			});
			if(p0 == 1){
				plv0 += parseFloat($(".one").find("p").data("plv"));
			}
			if(p1 == 1){
				plv0 += parseFloat($(".two").find("p").data("plv"));
			}

			$(".Method0 ul li:not('.one,.two')").each(function(){
				if($(this).hasClass("checked")){
					var zgao1 = parseFloat($(this).find("p").data("plv"));
					if(zgao0 <= zgao1){
						zgao0 = zgao1;
					}
				}
			});
			plv0 = plv0*100+zgao0*100;
		}
		if(zindex == 1 || zindex == 4){
			//三同号通选1、三连号通选4


		}


		var zzhu = parseInt(zhul);
		var uMoney = parseFloat($(".sj_each_money").val());
		if(!uMoney){
			uMoney= 0;
			$(".sj_zong_money").hide();
		}
		$(".sj_zong_money i").text(uMoney*zzhu);

		//最高可中
		//var zgao_kz = uMoney*plv0/100;
		//最高可中
        var zgao_kz;
        var nnn = false;
        try{
            nnn = plv0.toString().split(".")[1].length;
        }catch(e){

        }
        if(nnn){
            plv0 = plv0.toString().replace(/\./,"");
            zgao_kz = uMoney*Number(plv0)/Math.pow(10,nnn+2);
        }else{
            zgao_kz = uMoney*plv0/100;
        }
		
		
		$(".sj_zgkz_money").text(zgao_kz);
		$(".sj_zgkz_input").val(zgao_kz);
		$(".sj_zong_money_input").val(uMoney*zzhu);

	}

	//清空
	$(".sj_clear_btn").click(function(){
		to0();
	});

	//归零
	function to0(){
		$(".Method li").removeClass("checked");
		$(".sj_show_choose,.sj_show_zgkz,.sj_zong_cal,.sj_zong_money").hide();
		$("#choice,.sj_zgkz_money,.sj_zong_zhu i,.sj_zong_money i").text("");
		$(".sj_choice_input,.sj_each_money").val("");
		$(".sj_qing").show();
	}


	//点击马上投注
	$(".sj_tou_btn").click(function(){
		var zhu = $(".sj_zong_zhu i").text();
		var qian = $(".sj_each_money").val();
		if(!zhu){
			$("#layermbox4").show();
		}else if(!qian){
			$("#layermbox3").show();
		}else{
			var names = $(".sj_caizhong_input").val();
			var zhifu = $(".sj_zong_money_input").val();
			var cont = $(".sj_choice_input").val();
			$(".sj_cp_name").text(names);
			$(".sj_cp_qian").text(zhifu);
			$(".sj_cp_cont").text(cont);

			$("#layermbox2").show();
		}
	})
	$(".layermbtn span:first-of-type").click(function(){
		$(".layermbox").hide();
	})
}
if(sta!=1){
	var zhuq = setInterval(function shows(){
		$.ajax({
				 type: "POST",
				 url: "{:U('Lottery/get_time')}",
				 data: {id:10},
				 success: function(data){
					$('#RemainH').empty();  
					var nH=Math.floor(data/(1000*60*60))%24;
					var nM=Math.floor(data/(1000*60)) % 60;
					var nS=Math.floor(data/1000) % 60;
					if(nH<10){
						nH = '0'+nH;
					}if(nM<10){
						nM = '0'+nM;
					}if(nS<10){
						nS = '0'+nS;
					}
					$('#RemainH').html(nH+':'+nM+':'+nS);
					if(nH==0){
						if(nM==0){
							if(nS==0){
								var now = $("#qishu").html();
								if(parseInt(now) == parseInt(end)){
									$("#RemainH").html("预售中");
									if(parseInt(jj) == parseInt(str1)){
										//下月初
										var jqi = ming+'001';
										$("#qishu").html(jqi);
									}else{
										//直接加1
										var jqi = parseInt(jj)+1+'001';
										$("#qishu").html(jqi);
									}
									clearInterval(zhuq);
								}else {
									var str = eval(na2) + 1;
									var s11 = eval(na) + 1;
									$("#span22").html(str.toString().substr(4));
									$("#span11").html(s11.toString().substr(4));
									$(".tanc").show();
									gets();
								}
							}
						}
					}
				  }
			 });
	},1000);
}

function gets(){
	$.ajax({
		 type: "POST",
		 url: "{:U('Lottery/upd_issue')}",
		data: {na2:eval(na2)+1,na:eval(na)+1,id:10},
		 success: function(data){
			 var dat = eval( '(' + data + ')' );
			 window.na = dat.coming_issue;
			 window.na2 = dat.current_issue;
			$(".fx_DiceImgs_d").show();
			$(".ffd").hide();
		  }
	 });
	$("#qishu2").html(eval(na)+1);
	$("#qishu").html(eval(na2)+1);
	$("#spans").html(eval(na2)+1);
}
function tj(){
	if(sta=='1'){
		alert("预售中");
	}else{
	    var issue = $("#qishu").html();
        var pour = $(".sj_zong_zhu_input").val();
        var money = $(".sj_zong_money_input").val();
		//选择的值
		var vls = $(".sj_choice_input").val();
		//每注金额
		var per_money = $(".sj_each_money").val();
		//可中金额
        var moneys = $(".sj_zgkz_input").val();
		var ty_name = $(".betTopDetail li.checked").index()+1;

        $.ajax({
             type: "POST",
             url: "{:U('Lottery/adds')}",
             data: {lottery_class_id:10,issue:issue,zhus:pour,mons:money,vls:vls,ty_name:ty_name,pours:pour,per_money:per_money,con_money:moneys},
             success: function(data){
                if(data==1){
				    $(".Method li").removeClass("checked");
					$(".sj_show_choose,.sj_show_zgkz,.sj_zong_cal,.sj_zong_money").hide();
					$("#choice,.sj_zgkz_money,.sj_zong_zhu i,.sj_zong_money i").text("");
					$(".sj_choice_input,.sj_each_money").val("");
					$(".sj_qing").show();
                    $("#layermbox1999").show();
                }else if(data==3){
					$("#chongzhi").show();
					return false;
				}
             }
        });
	}
}
</script>
</body>
</html>